﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace _042.异步委托
{
	internal class Program
	{
		static void Test()
		{
            Console.WriteLine("Test Star1ted");
			

            Console.WriteLine("Test Running");
			Thread.Sleep(3000);

			Console.WriteLine("Test Completed");
        }
		delegate void TestDelegate();
		static void Main(string[] args)
		{
			TestDelegate testDelegate = Test;
			// 开启一个线程执行3.1之后不支持
			testDelegate.BeginInvoke(null, null);

            Console.WriteLine("Main Completed");
        }
	}
}
